#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.biz.enums;

/**
 * Created by well on 16/8/29.
 */
public enum SexEnum {
    men("男",1),
    female("女",2),;

    private String desc;
    private int val;

    SexEnum(String desc,int val){
        this.desc = desc;
        this.val=val;
    }


    public static SexEnum getByVal(int val){
        SexEnum[] values = SexEnum.values();
        for(SexEnum temp:values){
            if(temp.getVal() == val){
                return temp;
            }
        }
        return null;
    }

    public String getDesc() {
        return desc;
    }

    public int getVal() {
        return val;
    }
}
